
package Data;

import java.io.Serializable;

/**
 *
 * @author Cristina
 */
public class Employee implements Serializable
{

    private int employeeId;
    private String firstName;
    private String lastName;
    private int earning;
    private int bonus;
    private int workHours;

    public Employee(){}
    public Employee(String firstName, String lastName, int earning, int workHours , int bonus) {
        employeeId = -1;
        this.firstName = firstName;
        this.lastName = lastName;
        this.earning = earning;
        this.bonus = bonus;
        this.workHours = workHours;
    }

    //Get and set mehtods:

    public int getEmployeeId() { return employeeId; }
    public void setEmployeeId(int employeeId) { this.employeeId = employeeId;  }

    public String getFirstName() { return firstName; }
    public void setFirstName(String firstName) { this.firstName = firstName;  }

    public String getLastName() { return lastName;  }
    public void setLastName(String lastName) { this.lastName = lastName; }

    public int getEarning() { return earning; }
    public void setEarning(int earning) { this.earning = earning;  }

    public int getBonus() { return bonus; }
    public void setBonus(int bonus) { this.bonus = bonus; }

    public int getWorkHours() { return workHours; }
    public void setWorkHours(int workHours) { this.workHours = workHours; }


   public String toString()
   {
     return "[  "+firstName+" "+lastName+" "+earning+" "+ workHours +" " +bonus+"]";
   }
}
